from djangoweb.pabulum.models import Restaurant, Person, Location, Menu
from django.contrib import admin

class LocationsInline( admin.TabularInline):
    model = Location
    extra = 2

class MenuInline( admin.TabularInline):
    model = Menu
    extra = 3

class RestaurantAdmin( admin.ModelAdmin):
    inlines = [ LocationsInline, MenuInline]

admin.site.register( Restaurant, RestaurantAdmin)
admin.site.register( Person)

